LassoScript Utility
Basics Browse Detail

[String->RemoveTrailing]

Tag Link [String->RemoveTrailing] Category String
Type Member Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type None (Modifies in place) Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[String->RemoveTrailing] removes all instances of the parameter from the end of the string. Modifies the string and returns no value. Requires a single string parameter. The pattern is not case sensitive.

Syntax

[String Variable->(RemoveTrailing: 'String Pattern')]

Parameters

Required Parameters
String Pattern The character which should be removed from the end of the string.

Examples

To remove extra carriage returns from the end of a string:

Use the [String->RemoveTrailing] tag. The following example removes extra carriage returns from a variable Description that is set to the value of a field by the same name.

[Var: 'Description'=(Field: 'Description')]
[(Var:'Desription')->(RemoveTrailing: '
')]

Related Tags

Category Tags